comparing fractions butterfly method